import pytest
from selenium.webdriver.common.by import By
from selenium import webdriver
from time import sleep
from selenium.webdriver.support.ui import Select
@pytest.fixture()
def fun1():
    print("1开始")
    num = 100
    yield num
    print("1结束")
@pytest.fixture()
def fun0():
    print("0开始")
    num = 100
    yield num
    print("0结束")
def test001(fun0,fun1):
    num1 = fun0
    print("hello")
@pytest.fixture
def get_driver():
    driver = webdriver.Chrome()
    driver.implicitly_wait(10)
    driver.get("http://192.168.1.37/ranzhi/www/sys/user-login.html")
    yield driver
    driver.quit()

